package com.origin.grid.framework.modules.file.entity;

import com.origin.grid.framework.common.security.enums.UserEnums;
import com.origin.grid.framework.mybatis.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;

@Data
@TableName("li_file_directory")
@Schema(name = "文件目录")
public class FileDirectory extends BaseEntity {

    /**
     * @see UserEnums
     */
    @Schema(name = "文件目录类型")
    private String directoryType;
    @Schema(name = "拥有者名称")
    private String directoryName;
    @Schema(name = "拥有者id")
    private String ownerId;
    @Schema(name = "父分类ID")
    private String parentId;
    @Schema(name = "层级")
    @Min(value = 0, message = "层级最小为0")
    @Max(value = 2, message = "层级最大为2")
    private Integer level;
}
